package com.chis.jxc;

import com.chis.jm.bean.jxc.CntstmInfoBean;
import com.chis.jmdatatimer.comm.TxMgmtModule;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class TestM {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring.xml"});
        context.start();
        TxMgmtModule txMgmtModule = (TxMgmtModule) context.getBean("TxMgmtModule");

        String dbopt = "INSERT";
        String tablename = "TB_RESI";
        List<String> keylist = new ArrayList<>();
        keylist.add("RESI_CODE");
        keylist.add("RESI_NAME");
        keylist.add("DELMARK");
        keylist.add("UPDATE_TIME");
        List<Object> vallist = new ArrayList<>();
        vallist.add(556);
        vallist.add("测试;delete from TB_RESI ;");
        vallist.add(1);
        vallist.add(new Date());

        if(dbopt.equals("INSERT")){
            txMgmtModule.testinsert(tablename,keylist,vallist);
        } else {

        }
        


    }
}
